package com.combetter.changxing.collections;

import android.databinding.ViewDataBinding;
import android.support.annotation.LayoutRes;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import java.util.List;

/**
 * Created by Mark.fan on 2018/5/15.
 */

public interface BindingCollectionAdapter<T> {

    void setItems(List<T> items);

    T getItem(int position);

    ViewDataBinding onCreateBinding(LayoutInflater inflater, @LayoutRes int layoutId, ViewGroup viewGroup);
}
